package liiy.spring.entity;

import java.math.BigDecimal;
import java.util.Date;

public class User {
    private Long id;
    private Long pid;
    private String pids;
    private String mobile;
    private String password;
    private String avatar;
    private Integer status;
    private String inviteCode;
    private Integer verified;
    private BigDecimal balance;
    private BigDecimal frozenBalance;
    private Date createdAt;
    private Date updatedAt;
    private Date lastLoginTime;
    private String lastLoginIp;

    // 无参构造函数
    public User() {
    }

    // 全参构造函数
    public User(Long id, Long pid, String pids, String mobile, String password, String avatar, Integer status, String inviteCode, Integer verified, BigDecimal balance, BigDecimal frozenBalance, Date createdAt, Date updatedAt, Date lastLoginTime, String lastLoginIp) {
        this.id = id;
        this.pid = pid;
        this.pids = pids;
        this.mobile = mobile;
        this.password = password;
        this.avatar = avatar;
        this.status = status;
        this.inviteCode = inviteCode;
        this.verified = verified;
        this.balance = balance;
        this.frozenBalance = frozenBalance;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.lastLoginTime = lastLoginTime;
        this.lastLoginIp = lastLoginIp;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public Integer getVerified() {
        return verified;
    }

    public void setVerified(Integer verified) {
        this.verified = verified;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getFrozenBalance() {
        return frozenBalance;
    }

    public void setFrozenBalance(BigDecimal frozenBalance) {
        this.frozenBalance = frozenBalance;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", pid=" + pid +
                ", pids='" + pids + '\'' +
                ", mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                ", avatar='" + avatar + '\'' +
                ", status=" + status +
                ", inviteCode='" + inviteCode + '\'' +
                ", verified=" + verified +
                ", balance=" + balance +
                ", frozenBalance=" + frozenBalance +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", lastLoginTime=" + lastLoginTime +
                ", lastLoginIp='" + lastLoginIp + '\'' +
                '}';
    }
}